#ifndef __SPI_H
#define __SPI_H

#define SS2_TRIS TRISBbits.RB0
#define SCK2_TRIS TRISBbits.RB1
#define SDI2_TRIS TRISBbits.RB2

#define SS2_LAT LATBbits.LATB0

void spi_config(void);

UINT16 adc_read(void);

#endif